﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="cominfo.aspx.cs" Inherits="UI.system.page.config.cominfo" %>
<%@ Import Namespace="Common" %>
<script src="/js/jquery.min.js"></script>
<script src="/js/common.js"></script>
<script src="/js/md5.js"></script>
<script src="/js/swfupload.js"></script>
<script src="/system/js/admin.js"></script>
<script src="/system/layui/layui.js"></script>
<link rel="stylesheet" href="/system/layui/css/layui.css">
<link rel="stylesheet" href="/system/css/iframe.css">
<div style="margin: 35px;">
	<form class="layui-form" style="padding-left:0px;">
        <div class="layui-form-item">
			<label class="layui-form-label">公司名称</label>
			<div class="layui-input-block" style="width:300px;">
				<input id="comname" placeholder="请输入公司名称" lay-verify="required" autocomplete="off" class="layui-input" value="<%=info.ComName%>">
			</div>
		</div>
        <div class="layui-form-item">
			<label class="layui-form-label"></label>
			<div class="layui-input-inline">
				<a lay-filter="save" class="layui-btn layui-btn-small" onclick="Update_Contact()">保存</a>
			</div>
		</div>
	</form>
</div>
<script>
    function Update_Contact() {
        var data = {};
        data.act = "Update_Cominfo";
        data.comname = $("#comname").val();
        data.lat = 1;
        data.lng = 1;
        data.address = "";
        data.sign = GetSign(data.act);
        LayerBox.Loading();
        Ajax.Post("/tools/Admin.ashx", data, function (r) {
            LayerBox.Close.ByAll();
            var json = $.parseJSON(r);
            if (json.state) {
                LayerBox.Success("保存成功");
            }
            else {
                LayerBox.Error(json.msg);
            }
        });
    };
</script>